﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eComet
{
    public class PlugIn : ECometPlugIn,IECometPlugIn
    {



        #region Module Members


        public override ECometConfig Configuration()
        {
            return new ECometConfig("Uploader",".jpg,.jpeg,.gif,.png",true,true,true,true,true);
        }

        public override void Actions(int selectedId)
        {
            RunCommand(selectedId);
            MessageBox.Show("Facebook recibio "+selectedId.ToString());
            //throw new NotImplementedException();
        }

        public override int Menu(List<String> paths, List<String> extensions, uint numFiles, int typeDirOrFile)
        {
            //String.Join(";", paths.ToArray()).Replace(" ", "¬")
            int sub = AddMenu("Hi5");
            String path = String.Join(";",paths.ToArray()).Replace(" ","¬");
            AddMenuItem("Upload to New Album", "eCometUploader", path,sub);
            AddMenuItem("Upload to Existing Album", "eCometUploader", path, sub);
            //foreach (String llave in extensions)
            //{
            //    AddMenuItem(llave,"notepad","");
            //}
            //int sub = AddMenu("hola");
            //AddMenuItem("uno",sub);
            //AddMenuItem("dos",sub);
            //sub = AddMenu("adios");
            //AddMenuItem("tres", sub);
            //AddMenuItem("cuatro", sub);
            //MessageBox.Show("va bien");
            //AddMenuItem("hola","notepad",@"C:\hola.txt");
            //AddMenuItem("adios","notepad", @"C:\adios.txt");
            //throw new NotImplementedException();
            return ReturnStatus();
        }

        #endregion


    }
}
